package com.nowcoder.community.mapper;

import com.nowcoder.community.entity.DiscussPost;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author：Bear
 * @site：https://www.yuque.com/itbear
 * @email：bearpess@gmail.com
 * @created 2021-09-12 14:53:44 星期日
 * <p>
 * features：
 */
@Mapper
public interface DiscussPostMapper {

    List<DiscussPost> getDiscussPosts(@Param(value = "userId") int userId,
                                      @Param(value = "offset") int offset,
                                      @Param(value = "limit") int limit);

    int getDiscussPostRows(@Param(value = "userId") int userId);
}
